package com.tongji.diy.view
{
	/**
	 * 
	 * @author xxj
	 * 
	 */
	import com.tongji.diy.model.RoomBorderChild;
	import com.tongji.diy.model.RoomBorderChildModel;
	import com.tongji.diy.model.WallDoor;
	import com.tongji.diy.model.WallWindow;
	
	import flash.geom.Point;
	
	import org.robotlegs.mvcs.Mediator;
	
	public class RoomBorderChildPanelMediator extends Mediator
	{
		[Inject]
		public var view:RoomBorderChildPanel;
		
		[Inject]
		public var model:RoomBorderChildModel;
		
		override public function onRegister():void
		{
			model.roomBorderChild.addItem(new WallDoor(new Point(), "assets/image/MAP64110302DCUST0001.jpg"));
			model.roomBorderChild.addItem(new WallDoor(new Point(), "assets/image/MAP64110302DCUST0002.jpg"));
			model.roomBorderChild.addItem(new WallDoor(new Point(), "assets/image/MAP64110302DCUST0003.jpg"));
			model.roomBorderChild.addItem(new WallWindow(new Point(), "assets/image/MAP64110302DCUST0017.jpg"));
			model.roomBorderChild.addItem(new WallWindow(new Point(), "assets/image/MAP64110302DCUST0018.jpg"));
			
			view.dataProvider = model.roomBorderChild;
		}
	}
}